package com.zdb.order.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zdb.order.entity.SellerInfo;
import com.zdb.order.mapper.SellerInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Lx
 * @Date 2020/8/29 15:05
 * @Version 1.0
 */
@Service
public class SellerInfoService {
    @Autowired
    private SellerInfoMapper sellerInfoMapper;

    /**
     * 根据sid,查询商家表对象
     * @param sid
     * @return
     */
    public SellerInfo getSellerInfoById(int sid){
        SellerInfo sellerInfos = sellerInfoMapper.selectOne(new QueryWrapper<SellerInfo>().eq("seller_id", sid));
        return sellerInfos;
    }
}
